/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>HL7 Committee ID In RIM</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T10034 (C-0-T10034-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getHL7CommitteeIDInRIM()
 * @model extendedMetaData="name='HL7CommitteeIDInRIM'"
 * @generated
 */
public enum HL7CommitteeIDInRIM implements Enumerator {
	/**
	 * The '<em><b>C02</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C02_VALUE
	 * @generated
	 * @ordered
	 */
	C02(0, "C02", "C02"),

	/**
	 * The '<em><b>C06</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C06_VALUE
	 * @generated
	 * @ordered
	 */
	C06(1, "C06", "C06"),

	/**
	 * The '<em><b>C09</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C09_VALUE
	 * @generated
	 * @ordered
	 */
	C09(2, "C09", "C09"),

	/**
	 * The '<em><b>C00</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C00_VALUE
	 * @generated
	 * @ordered
	 */
	C00(3, "C00", "C00"),

	/**
	 * The '<em><b>C04</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C04_VALUE
	 * @generated
	 * @ordered
	 */
	C04(4, "C04", "C04"),

	/**
	 * The '<em><b>C03</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C03_VALUE
	 * @generated
	 * @ordered
	 */
	C03(5, "C03", "C03"),

	/**
	 * The '<em><b>C12</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C12_VALUE
	 * @generated
	 * @ordered
	 */
	C12(6, "C12", "C12"),

	/**
	 * The '<em><b>C10</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C10_VALUE
	 * @generated
	 * @ordered
	 */
	C10(7, "C10", "C10"),

	/**
	 * The '<em><b>C20</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C20_VALUE
	 * @generated
	 * @ordered
	 */
	C20(8, "C20", "C20"),

	/**
	 * The '<em><b>C01</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C01_VALUE
	 * @generated
	 * @ordered
	 */
	C01(9, "C01", "C01"),

	/**
	 * The '<em><b>C21</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #C21_VALUE
	 * @generated
	 * @ordered
	 */
	C21(10, "C21", "C21");

	/**
	 * The '<em><b>C02</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C02</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C02
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C02_VALUE = 0;

	/**
	 * The '<em><b>C06</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C06</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C06
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C06_VALUE = 1;

	/**
	 * The '<em><b>C09</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C09</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C09
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C09_VALUE = 2;

	/**
	 * The '<em><b>C00</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C00</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C00
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C00_VALUE = 3;

	/**
	 * The '<em><b>C04</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C04</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C04
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C04_VALUE = 4;

	/**
	 * The '<em><b>C03</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C03</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C03
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C03_VALUE = 5;

	/**
	 * The '<em><b>C12</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C12</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C12
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C12_VALUE = 6;

	/**
	 * The '<em><b>C10</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C10</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C10
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C10_VALUE = 7;

	/**
	 * The '<em><b>C20</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C20</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C20
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C20_VALUE = 8;

	/**
	 * The '<em><b>C01</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C01</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C01
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C01_VALUE = 9;

	/**
	 * The '<em><b>C21</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>C21</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #C21
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int C21_VALUE = 10;

	/**
	 * An array of all the '<em><b>HL7 Committee ID In RIM</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final HL7CommitteeIDInRIM[] VALUES_ARRAY =
		new HL7CommitteeIDInRIM[] {
			C02,
			C06,
			C09,
			C00,
			C04,
			C03,
			C12,
			C10,
			C20,
			C01,
			C21,
		};

	/**
	 * A public read-only list of all the '<em><b>HL7 Committee ID In RIM</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<HL7CommitteeIDInRIM> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>HL7 Committee ID In RIM</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HL7CommitteeIDInRIM get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HL7CommitteeIDInRIM result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>HL7 Committee ID In RIM</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HL7CommitteeIDInRIM getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HL7CommitteeIDInRIM result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>HL7 Committee ID In RIM</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HL7CommitteeIDInRIM get(int value) {
		switch (value) {
			case C02_VALUE: return C02;
			case C06_VALUE: return C06;
			case C09_VALUE: return C09;
			case C00_VALUE: return C00;
			case C04_VALUE: return C04;
			case C03_VALUE: return C03;
			case C12_VALUE: return C12;
			case C10_VALUE: return C10;
			case C20_VALUE: return C20;
			case C01_VALUE: return C01;
			case C21_VALUE: return C21;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private HL7CommitteeIDInRIM(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //HL7CommitteeIDInRIM
